<?php

use App\Task\OrderCancelTask;
use Hyperf\Crontab\Crontab;

return [
    // 是否开启定时任务
    'enable' => false,
    'crontab' => [
        (new \Hyperf\Crontab\Crontab())->setName('OrderCancelTask')->setRule('*/30 * * * * *')->setCallback([OrderCancelTask::class, 'execute'])->setMemo('用户订单超时未支付 '),
    ],
];